﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Security.Tokens
{
    [Serializable]
    public class TokenCacheProfile
    {
        //2010-04-13 添加username、password
        //2010-03-10 添加对super user 的支持

        bool isSuperUser = false;
        string token;
        string usercode;
        string username;
        string md5password;
        List<string> accessList = new List<string>();

        public TokenCacheProfile()
        {
        }

        public TokenCacheProfile(string token, string usercode)
        {
            this.token = token;
            this.usercode = usercode;
        }


        public bool IsSuperUser
        {
            get { return isSuperUser; }
            set { isSuperUser = value; }
        }
        public string Token
        {
            get { return token; }
            set { token = value; }
        }
        public string Usercode
        {
            get { return usercode; }
            set { usercode = value; }
        }
        public string Username
        {
            get { return username; }
            set { username = value; }
        }
        public string Md5password
        {
            get { return md5password; }
            set { md5password = value; }
        }
        public List<string> AccessList
        {
            get { return accessList; }
            set { accessList = value; }
        }
    }
}
